#ifndef PURCHASED_GOODS_LIST_H
#define PURCHASED_GOODS_LIST_H

#include"value.h"

/*初始化头节点*/
extern Cart_goods_list *cart_goods_init_list(void);

/*创建新节点*/
extern Cart_goods_list * Cart_goods_new_node(Cart_goods data);

/*判断链表是否为空*/
extern bool Cart_goods_is_empty(Cart_goods_list *list);

/*插入节点*/
extern void Cart_goods_insert_node(Cart_goods_list * p,Cart_goods_list * new);
/*删除节点*/
extern bool cart_goods_remove_node(Cart_goods_list *mylist,Cart_goods_list *delete);

/*根据name查找节点*/
extern Cart_goods_list* cart_goods_find_node_by_name(Cart_goods_list* mylist,char *name);

#endif